<?php
/*
 * start event box
 */
?>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
	<div class="modal-content">
	    <div class="modal-header">
		<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
		<h4 class="modal-title">Modal title</h4>
	    </div>
	    <?php
	    $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
		'id' => 'event-form',
		'enableAjaxValidation' => false,
		'enableClientValidation' => true,
		'clientOptions' => array(
		    'validateOnSubmit' => true
		)
	    ));
	    ?>
	    <div class="modal-body">			


		<?php echo $form->labelEx($eventModel, 'title'); ?>				
		<?php echo $form->textField($eventModel, "title"); ?>			
		<?php echo $form->error($eventModel, "title"); ?>

		<?php
		echo $form->datepickerRow($eventModel, 'start', array(
		    'prepend' => '<i class="icon-calendar"></i>'
		))
		?>

		<?php echo $form->labelEx($eventModel, 'description'); ?>		
		<?php
		echo $form->textArea($eventModel, 'description', array(
		    'rows' => 10, 'cols' => 20,
		    'class' => 'span6 description-event'));
		?>
		<?php echo $form->error($eventModel, "description"); ?>


	    </div>
	    <div class="modal-footer">
		<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
		<button name="create-event" type="submit" class="btn btn-primary">Save changes</button>
	    </div>
	    <?php $this->endWidget(); ?>
	</div>
    </div>
</div>
<?php /* ------------------------------end add event box */ ?>